package com.legal.aid.app.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.legal.aid.common.annotation.Excel;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 修改订单DTO
 */
public class OrderUpdateDto implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * 订单ID
     */
    private Long id;

    /**

    /**
     * 订单编号
     */
    @Excel(name = "订单编号")
    private String orderNo;


    /**
     * 订单状态(0待支付 1已支付 2已取消)
     */
    @Excel(name = "订单状态(0待支付 1已支付 2已取消)")
    private String orderStatus;

    /**
     * 案件标题
     */
    @Excel(name = "案件标题")
    private String caseTitle;

    /**
     * 用户姓名
     */
    @Excel(name = "用户姓名")
    private String userName;
    /**
     * 预约时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date appointmentTime;


    /**
     * 用户手机号
     */
    @Excel(name = "用户手机号")
    private String phone;

    /**
     * 用户联系地址
     */
    @Excel(name = "用户联系地址")
    private String address;

    /**
     * 订单价格
     */
    @Excel(name = "订单价格")
    private BigDecimal price;

    /**
     * 律师id
     */
    @Excel(name = "律师姓名")
    private String lawyerId;

    /**
     * 是否删除(0否1是)
     */
    private String isDeleted;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }



    public Date getAppointmentTime() {
        return appointmentTime;
    }

    public void setAppointmentTime(Date appointmentTime) {
        this.appointmentTime = appointmentTime;
    }

    public void setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getOrderStatus() {
        return orderStatus;
    }

    public void setCaseTitle(String caseTitle) {
        this.caseTitle = caseTitle;
    }

    public String getCaseTitle() {
        return caseTitle;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPhone() {
        return phone;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getAddress() {
        return address;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public String getLawyerId() {
        return lawyerId;
    }

    public void setLawyerId(String lawyerId) {
        this.lawyerId = lawyerId;
    }

    @Override
    public String toString() {
        return "OrderUpdateDto{" +
                "id=" + id +
                ", orderNo='" + orderNo + '\'' +
                ", orderStatus='" + orderStatus + '\'' +
                ", caseTitle='" + caseTitle + '\'' +
                ", userName='" + userName + '\'' +
                ", appointmentTime=" + appointmentTime +
                ", phone='" + phone + '\'' +
                ", address='" + address + '\'' +
                ", price=" + price +
                ", lawyerId='" + lawyerId + '\'' +
                ", isDeleted='" + isDeleted + '\'' +
                '}';
    }

    public void setIsDeleted(String isDeleted) {
        this.isDeleted = isDeleted;
    }

    public String getIsDeleted() {
        return isDeleted;
    }

}
